﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content/master/master_form.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%  ViewBag.permission = ViewBag.permission ?? false;
    if (!ViewBag.permission) {
       Html.RenderPartial("~/Views/Shared/control_topheader_error.ascx");
       Html.RenderPartial("~/Views/Shared/control_header_error.ascx");
       Html.RenderPartial("~/Views/Shared/control_forbidden_access.ascx");
   } else {
       Html.RenderPartial("~/Views/Shared/control_topheader.ascx");
       Html.RenderAction("control_header");
       Html.RenderAction("control_leftmenu_account");
       Html.RenderAction("control_change_password");
   } %>
</asp:Content>
